package javabase.schoolwork.day6_14;

import java.io.PipedInputStream;

/**
 * @author fance
 * @date 2018/6/14 22:52
 */
public class ThreadRead extends Thread{
    private ReadData readData;
    private PipedInputStream in;

    public ThreadRead(ReadData readData, PipedInputStream in) {
        this.readData = readData;
        this.in = in;
    }

    @Override
    public void run() {
        readData.read(in);
    }
}
